package com.ae.putingotdown.block;

import com.ae.putingotdown.ModConstant;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class Register {
    //    public static final DeferredRegister<Item> ITEM = DeferredRegister.create(ForgeRegistries.ITEMS, ModConstant.MOD_ID);
    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, ModConstant.MOD_ID);
    public static final DeferredRegister<Block> BLOCK = DeferredRegister.create(ForgeRegistries.BLOCKS, ModConstant.MOD_ID);

    public static final RegistryObject<Block> PLACED_INGOT = BLOCK.register("placed_ingot", PlacedIngot::new);
    public static final RegistryObject<Block> INGOT = BLOCK.register("ingot", () -> new Block(AbstractBlock.Properties.of(Material.GLASS)));
    public static final RegistryObject<TileEntityType<TilePlacedItem>> TILE_PLACED_INGOT = TILE_ENTITY.register("tile_placed_ingot", () -> TileEntityType.Builder.of(TilePlacedItem::new, PLACED_INGOT.get()).build(null));
}
